package com.gao.security.verificationcode;

import com.gao.security.verificationcode.base.VerficationCode;
import org.springframework.security.core.AuthenticationException;

/**
 * <p>
 *     验证码验证管理器
 * </p>
 *
 * @author GaoShuangWen
 * @since 2019-07-29 14:59
 */
public interface VerficationCodeManager {

     /**
     *  验证
     * @param verficationCode
     * @return
     * @throws AuthenticationException
     */
     boolean verification(VerficationCode verficationCode) throws AuthenticationException;

}
